CC := gcc

CFLAGS := -g -O0 -Wall #DEBUG代码调试

create: 01_create.c
	-$(CC) $^ -o $@ 
	-./$@
	-rm $@

sum_sqr: 02_sum_sqr.c
	-$(CC) $^ -o $@ 
	-./$@
	-rm $@

sum_sqr_thread: 02_sum_sqr_thread.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

race_condition: 04_race_condition.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

test_mqueue: 06_test_mqueue.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@



